load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "version",
    srcs = ["version.go"],
    importpath = "github.com/cockroachdb/cockroach/pkg/util/version",
    visibility = ["//visibility:public"],
    deps = ["@com_github_cockroachdb_errors//:errors"],
)

go_test(
    name = "version_test",
    size = "small",
    srcs = ["version_test.go"],
    embed = [":version"],
)
